// 存储当前登录信息
export const SET_TOKEN=(userInfo)=>{
  localStorage.setItem('APPUSERINFO',userInfo)
}

export const GET_TOKEN=()=>{
  return localStorage.getItem('APPUSERINFO')
}

export const REMOVE_TOKEN=()=>{
  localStorage.removeItem('APPUSERINFO')
}
// 存储每次访问时获取的用户类型
export const SET_TYPE=(typeNum)=>{
  sessionStorage.setItem('userType',typeNum)
}

export const GET_TYPE=()=>{
  return sessionStorage.getItem('userType')
}

export const REMOVE_TYPE=()=>{
  sessionStorage.removeItem('userType')
}
// 存储业务页上一次访问记录
export const SET_VISIT=(companyId)=>{
  localStorage.setItem('COMPANYID',companyId)
}

export const GET_VISIT=()=>{
  return localStorage.getItem('COMPANYID')
}

export const REMOVE_VISIT=()=>{
  localStorage.removeItem('COMPANYID')
}